package com.neulogistics.infrastructure.common.rpc.client;

import cn.hutool.json.JSONArray;
import cn.hutool.json.JSONObject;
import com.neulogistics.infrastructure.common.serviceresult.BaseResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;
import java.util.Map;

@FeignClient("Warehouse")
public interface WarehouseClient {
    @PostMapping("/warehouse/getRecommendedWarehouse")
    BaseResponse<Map<String, JSONArray>> getRecommendedWarehouse(Object address);

    @GetMapping("/warehouse/get/{id}")
    BaseResponse<JSONObject> getWarehouseById(Integer id);
}
